package com.oa.pm.entity;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@ApiModel("登记表")
@TableName("pm_registration")
@Data
public class Registration extends Model<Registration> {

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty("用户ID")
    private String userId;

    @ApiModelProperty("形式 1-内勤 2-外勤")
    private Integer form;

    @ApiModelProperty("1-签到  2-签退")
    private Integer type;

    @ApiModelProperty("1-正常 2-迟到 3-早退")
    private Integer status;

    @ApiModelProperty("登记地址")
    private String address;

    @ApiModelProperty("登记时间")
    private Date registrationDate;

    @ApiModelProperty("超时分钟")
    private Integer timeoutMinute;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
